package com.iwinding.ladygg.net.callback;

import com.iwinding.ladygg.net.response.BaseRopnse;
import com.iwinding.ladygg.net.response.UserRp;
import com.iwinding.ladygg.utils.GsonUtil;
import com.iwinding.ladygg.utils.LogUtil;

import java.util.List;

/**
 * Created by hezhiyong on 2017/3/24.
 */

public abstract class NoticesCallback extends BaseRpCallback<List<UserRp>> {

    @Override
    public List<UserRp> parseResponse(BaseRopnse response, int id) {
        LogUtil.i("@hzy", "icane----Notices:" );
        List<UserRp> rp = GsonUtil.getInstance().jsonToArray(response.data, UserRp.class);
        return rp;
    }
}